package org.dromara.common.mybatis.aspect

import org.aopalliance.aop.Advice
import org.springframework.aop.Pointcut
import org.springframework.aop.support.AbstractPointcutAdvisor

/**
 * 数据权限注解切面定义
 *
 * @author LikeYouDo
 */
@Suppress("all")
open class DataPermissionPointcutAdvisor(
    private val advice: Advice = DataPermissionAdvice(),
    private val pointcut: Pointcut = DataPermissionPointcut()
) : AbstractPointcutAdvisor() {

    override fun getPointcut(): Pointcut {
        return this.pointcut
    }

    override fun getAdvice(): Advice {
        return this.advice
    }
}
